package org.gitman.agentplatform.core;

public class AgentStatistic {
	public int minPath;
	public int path;
	public int failed;
	public long time; //in nano seconds
	
	public AgentStatistic() {
		minPath = 0;
		path = 0;
		failed = 0;
		time = 0l;
	}		
	public AgentStatistic(int minPath, int path, int failed, long time) {
		super();
		this.minPath = minPath;
		this.path = path;
		this.failed = failed;
		this.time = time;
	}
	public String getRating() {
		return "" + (path - minPath)*(path - minPath);
	}
	public String getPathSize() {
		return "" + path;
	}
	public String getMinPathSize() {
		return "" + minPath;
	}
	public String getFailed() {
		return "" + failed;
	}
	public String getTime() {
		return "" + time/1000000.0 + "ms"; 
	}
	public void reset(){
		path = 0;
		failed = 0;
		time = 0l;
	}
}
